package com.micro.common.service.web.domain.req.dict;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel("数据字典-新增请求体")
public class DictAddReq {

    @ApiModelProperty("分组编码")
    @NotBlank(message = "分组编码不能为空")
    private String groupCode;

    @ApiModelProperty("分组名称")
    @NotBlank(message = "分组名称不能为空")
    private String groupName;

    @ApiModelProperty("字典编码")
    @NotBlank(message = "字典编码不能为空")
    private String dictCode;

    @ApiModelProperty("字典名称")
    @NotBlank(message = "字典名称不能为空")
    private String dictName;

    @ApiModelProperty("排序")
    private int sortNo;

    @ApiModelProperty("备注")
    private String remark;
}
